i% = DoMsgBox("Sorry, but your Windows version is "+winVer$+" and "+PRODUCTNAME$+" requires at least Windows "+winVerReqd$+".", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
IF INSTR(oldCmd$, PROGNAME$+".EXE") = 0 THEN 'not us, must confirm
j% = INSTR(oldCmd$, " ")
IF j% > 1 THEN
oldProg$ = MID$(oldCmd$, 1, j%-1)
ELSE
oldProg$ = oldCmd$
END IF
END IF
END IF
'Get user confirmation if necessary, and do the association if ok.
MAYBE_CONFIRM:
IF oldProg$ <> "" THEN
ok% = DoMsgBox("."+UCASE$(szExt$)+" files are currently associated with "+oldProg$+". Switch association to "+PRODUCTNAME$+"?", "Setup Question", MB_YESNO+MB_TASKMODAL+MB_ICONQUESTION)
END IF
IF ok% = IDYES THEN
DeleteRegKey "."+szExt$ 'delete all keys for any old direct association